//
//  FourViewController.m
//  LocomotiveGuards
//
//  Created by admin on 15/11/18.
//  Copyright (c) 2015年 REDOOR. All rights reserved.
//

#import "FourViewController.h"

@interface FourViewController ()
{
    UIButton *btn_return;
}
@end

@implementation FourViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    UIImageView *imageview=[[UIImageView alloc]initWithFrame:[UIScreen mainScreen].bounds];
    imageview.image=[UIImage imageNamed:@"4"];
    [self.view addSubview:imageview];
    btn_return=[[UIButton alloc]initWithFrame:CGRectMake(15*W, 27*H, 70*W, 20*H)];
    [btn_return setImage:[UIImage imageNamed:@"1_btn01"] forState:UIControlStateNormal];
    [btn_return addTarget:self action:@selector(tapped_returnlogin) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn_return];
}
-(void)tapped_returnlogin{
    [self dismissViewControllerAnimated:YES completion:nil];
}

-(void)viewWillAppear:(BOOL)animated{
    NSDictionary *dic=@{@"key":@"3"};
    
    [[NSNotificationCenter defaultCenter]postNotificationName:@"changetabbarone1" object:nil userInfo:dic];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
